<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /*  */
        var obj ={
            A:[{name:"html"},{name:"ctc"}],
            B:[{name:"css"},{name:"js"}],
            C:[{name:"vue"},{name:"js"}],
        }
        var keyword = "c";
        /* arr */

        var arr = Object.values(obj);
        var res = [];
        arr.forEach(item=>{
            res.push(...item)
        })
        console.log(res);

        /* var arr = [];
        for(let key in obj){
            obj[key].forEach(item=>{
                if(item.name.includes(keyword)){
                    arr.push(item);
                }
            })
        }
        console.log(arr); */
    </script>
</body>
</html>